JBoss Community Archive (Read Only)

Scribble

Credit Check Protocol

This example shows how a Client role performs a credit check
against a CreditAgency role.

protocol CreditCheck (role Client) {
    Client introduces CreditAgency;

    CheckCredit from Client to CreditAgency;

    choice at CreditAgency {
        CreditOk from CreditAgency to Client;
    } or {
        NoCredit from CreditAgency to Client;
    }
}
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:37:58 UTC, last content change 2011-11-13 16:12:46 UTC.